package com.cs.study.homework._0223.Demo;

public class Demo {
    public static void main(String[] args) {

    }
}

abstract class Player{
    String name;
    int age;
    abstract void play();
}

class BasketballPlayer extends Player implements Learn{
    public BasketballPlayer() {
    }

    @Override
    void play() {
        System.out.println("打篮球");
    }

    @Override
    public void learn() {
        System.out.println("learn English");
    }
}

class FootballPlayer extends Player implements Learn{
    public FootballPlayer() {
    }

    @Override
    void play() {
        System.out.println("踢足球");
    }

    @Override
    public void learn() {
        System.out.println("learn math");
    }
}

interface Learn{
    void learn();
}
